import Vue from "vue"
import vuex from 'vuex'

Vue.use(vuex)

export default new vuex.Store({
	state: {
		userInfo: {},
		session_key: '',
	},
	mutations: {
		// 设置用户信息
		setUserInfo(state, userInfo) {
			state.userInfo = userInfo
		},
		// 设置key
		setSessionKey(state, key) {
			state.session_key = key
		},
	}
})
